package com.gim.util;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.handler.codec.LengthFieldPrepender;

public class AcceptHandle extends ChannelInitializer {
    @Override
    protected void initChannel(Channel channel) throws Exception {
        channel.pipeline()
                .addLast(new LengthFieldPrepender(4)) // 4字节长度头
                .addLast(new AcceptDataClient());
    }
}
